package com.object;

import java.util.Scanner;

public class StringDemo {
    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);

        System.out.println("请输入字符串:");
        String line = scanner.nextLine();

        StringUtil string = new StringUtil();
//
//
//
//        string.StringMap(line);
//        System.out.println("---------");
//        //统计每个字符出现的次数
//        string.StringComputed(line);
//        System.out.println("---------");
//        int[] arr = {1,2,3,4,5,6,7,8,9,0};
//        String arrayString = string.ArrayToString(arr);
//        System.out.println(arrayString);

        //输入字符串进行字符串反转的方法
        String reverse = string.StringReverse(line);

        System.out.println(reverse);
    }
}
